package me.zhengjie.modules.system.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import me.zhengjie.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Getter
@Setter
@Entity
@Table(name = "user_contract")
public class Contract extends BaseEntity implements Serializable {

    @Id
    @Column(name = "contract_code")
    @NotNull(groups = Update.class)
    @ApiModelProperty(value = "合同编号")
    private String contractCode;

    @Column(name = "users_info_id")
    @ApiModelProperty(value = "客户id")
    private String usersInfoId;

    @Column(name = "address_party_a")
    @ApiModelProperty(value = "甲方通讯地址")
    private String addressPartyA;

    @Column(name = "representative_party_a")
    @ApiModelProperty(value = "甲方代表人")
    private String representativePartyA;

    @Column(name = "create_contract_author")
    @ApiModelProperty(value = "立合约书人（甲方）")
    private String createContractAuthor;

    @Column(name = "contract_signer")
    @ApiModelProperty(value = "合同签订人（乙方）")
    private String contractSigner;

    @Column(name = "valid_date")
    @ApiModelProperty(value = "合约有效周期（月）")
    private String validDate;

    @Column(name = "cycle")
    @ApiModelProperty(value = "周期")
    private String cycle;

    @Column(name = "id_number")
    @ApiModelProperty(value = "身份证号")
    private String iNumber;

    @Column(name = "address")
    @ApiModelProperty(value = "户籍地址")
    private String address;

    @Column(name = "contract_year")
    @ApiModelProperty(value = "合同签订日期（年）")
    private String contractYear;

    @Column(name = "contract_month")
    @ApiModelProperty(value = "合同签订日期（月）")
    private String contractMonth;

    @Column(name = "contract_day")
    @ApiModelProperty(value = "合同签订日期（日）")
    private String contractDay;

}
